package com.dzirtbry.ticatac.UI;

import java.awt.Dimension;

import javax.swing.JFrame;

import com.dzirtbry.ticatac.game.GameModel;

@SuppressWarnings("serial")
public class SwingGUI extends JFrame{

	
	public SwingGUI() {
		super ("TicTac toe");
		init();
	}
	
	private void init() {
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		TicTacWidget ttw = new TicTacWidget(new GameModel());
		ttw.setPreferredSize(new Dimension(100, 100));
		this.getContentPane().add(ttw);
		
		this.pack();
		this.setSize(300, 300);
		this.setVisible(true);
	}
	
	public static void main(String[] args) {
		new SwingGUI();
	}
}
